package com.my.screenadapter.bundle;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.my.screenadapter.R;

public class BundleTurnActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bundle_turn);
    }

    public void turnBundle(View view) {
        Intent intent = new Intent(this, DoBundleActivity.class);
        Bundle bundle = new Bundle();
        for (int i = 0; i < 5; i++) {
            bundle.putString(String.valueOf(i),i+"key");
        }
        bundle.putInt("int",11);
        intent.putExtras(bundle);
        startActivity(intent);
    }
}